﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>修改字段名</title>
    <link href="../../../Scripts/easyUI145/themes/icon.css" rel="stylesheet" type="text/css" />
    <link href="../../../Scripts/easyUI145/themes/default/easyui.css" rel="stylesheet" type="text/css" />
    <link href="../../../../DataUser/Style/ccbpm.css" rel="stylesheet" type="text/css" />
    <script src="../../../Scripts/easyUI145/jquery.min.js"></script>
    <script src="../../../Scripts/easyUI145/jquery.easyui.min.js" type="text/javascript"></script>
    <script src="../../../Scripts/QueryString.js" type="text/javascript"></script>
    <script src="../../../Scripts/config.js" type="text/javascript"></script>
    <script src="../../../Scripts/QueryString.js" type="text/javascript"></script>
    <script src="../../../Comm/Gener.js" type="text/javascript"></script>
    <script src="DDLBar.js" type="text/javascript"></script>
    <script src="../../../CCFlowEnum.js"></script>
    <script type="text/javascript" src="../../../Scripts/download.js"></script>
    <script type="text/javascript">
        $(function () {

            InitBar("DataType");

        });

        //导出表单模板
        function Down() {

            var frmID = GetQueryString("FK_MapData");
            var md = new Entity("BP.Sys.MapData", frmID);
            //创建处理类.
            var handler = new HttpHandler("BP.WF.HttpHandler.WF_Admin_CCBPMDesigner");
            handler.AddUrlData();
            var data = handler.DoMethodReturnString("DownFormTemplete"); //执行方法，返回执行结果.

            if (data.indexOf('url@') == 0) {
                var url = data.replace('url@', '');
                SetHref(url);
                return;
            }

            download(data, md.Name + ".xml", "xml");
            return;
        }
    </script>
</head>
<body>

    <div id="bar"></div>

    <fieldset>
        <legend>下载到本机 </legend>
        <ul>
            <li id="downli">驰骋工作流引擎已经为您生成了表单模版文件，<a href="javascript:Down();">请点击这里下载到本机</a></li>
            <li>该xml格式的表单模版文件可以通过，软盘交换到其它ccbpm系统中去。</li>
        </ul>
    </fieldset>
</body>
</html>
